package src.main.chouxianggongchang;

import src.main.chouxianggongchang.cat_factory_impl.LaoLiFactory;
import src.main.chouxianggongchang.cat_factory_impl.LaoZhaoFactory;

public class TestZoon {
    public static void main(String[] args) {
        ZoonCanFactory zoonCanFactory=new LaoLiFactory();
        zoonCanFactory.catCan().zoon();
        zoonCanFactory.dogCan().zoon();

        ZoonCanFactory zoonCanFactory1=new LaoZhaoFactory();
        zoonCanFactory1.catCan().zoon();
        zoonCanFactory1.dogCan().zoon();
    }
}
